/**
 * 酒秀
 * 9elephas.com
 */

import React, { Component } from 'react'
import { Provider } from 'react-redux'
import { NetInfo, View, Text, StyleSheet, Platform, Image, TouchableOpacity } from 'react-native';
import store from './store'
import { AppNavigator } from './navigation'
import {COLOR, SCREEN_WIDTH, SCREEN_HEIGHT} from './config'
export default class App extends Component {

  constructor(props) {
    super(props);
    this.state = {
      content: 1
    }


  }


  /**
   * 
   * 点击进入首页
   * 
   * @memberOf App
   */
  start() {
    this.setState({
      content: 6
    })
  }

  render() {
    return (
      <Provider store={store}>
        <AppNavigator />
      </Provider>
    )
  }
}



        {/* {
          this.state.content == 1 ?

            <View style={{ width: SCREEN_WIDTH, height: SCREEN_HEIGHT }}>
              <TouchableOpacity style={{  width: SCREEN_WIDTH, height: SCREEN_HEIGHT }}
                onPress={() => this.start()}
              >
                {
                  Platform.OS === 'ios' ?
                  <Image source={{ uri: '4.png' }} style = {{width:SCREEN_WIDTH,height:SCREEN_HEIGHT}} />
                  :
                  <Image source={{ uri: 'gui4' }} style = {{width:SCREEN_WIDTH,height:SCREEN_HEIGHT}} />
                }
                
              </TouchableOpacity>
            </View>

            : 
        }*/}